<?php
class newstypeController extends Controller
{
    function showIndex()
    {
        // TODO: Implement showIndex() method.
    }

    function show()
    {
        $typeId = $this->_get['id'];
        $this->putIntoPage("type", $this->modules->NewsType->load($typeId));
        $pagination_sql = "select * from news where type = $typeId and status <> 'D' order by createDate desc";
        $pagination_count_sql = "select count(1) as count from news where type = $typeId and status <> 'D' order by createDate desc ";
        $this->putIntoPage("pagination", $this->modules->News->pagination($pagination_sql, $pagination_count_sql));
        $this->render("news_more");
    }

}

?>